<!--{template common/header}-->
<div id="pt" class="bm cl">
	<div class="z">
		<a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a> <em>&rsaquo;</em>
		<a href="plugin.php?id=dzapp_zhibo">{lang dzapp_zhibo:zhibo}</a> <em>&rsaquo;</em>
		<a href="plugin.php?id=dzapp_zhibo&mod=zhibocp">{lang dzapp_zhibo:zhibocp}</a> <em>&rsaquo;</em>
		<!--{if $op == 'flow'}-->
		<a href="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity">{lang dzapp_zhibo:activity}</a> <em>&rsaquo;</em>
		<a href="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity&op=post&activity_id=$activity_id">$activity[title]</a> <em>&rsaquo;</em>
		{lang dzapp_zhibo:flow}
		<!--{elseif $activity_id}-->
		<a href="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity">{lang dzapp_zhibo:activity}</a> <em>&rsaquo;</em>
		$activity[title]
		<!--{else}-->
		{lang dzapp_zhibo:activity}
		<!--{/if}-->
	</div>
</div>
<div id="ct" class="ct2_a wp cl">
	<div class="mn">
		<div class="bm bw0">
			<!--{if $op == 'list'}-->
			<ul class="tb mbm cl">				
				<li class="a"><a href="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity">{lang dzapp_zhibo:activity}</a></li>
				<li class="o y"><a href="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity&op=post">{lang dzapp_zhibo:activity_add}</a></li>
				<li class="y">
					<form method="post" action="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity&op=list">
						{lang dzapp_zhibo:name}
						<input type="text" name="name" value="{$_GET[name]}" style="width:80px">
						{lang dzapp_zhibo:state}
						<select name="end">
							<option value="0" {if $_GET[end] == 0}selected="selected"{/if}>{lang dzapp_zhibo:not_over}</option>
							<option value="1" {if $_GET[end] == 1}selected="selected"{/if}>{lang dzapp_zhibo:over}</option>
							<option value="-1" {if $_GET[end] == -1 || !isset($_GET[end])}selected="selected"{/if}>{lang dzapp_zhibo:all}</option>
						</select>
						<button type="submit" class="pn pnp"><strong>{lang dzapp_zhibo:search}</strong></button>
					</form>
				</li>
			</ul>

			<form name="cateform" method="post" action="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity">
				<input type="hidden" name="formhash" value="{FORMHASH}" />
				<input type="hidden" name="listsubmit" value="true" />
				<table cellspacing="0" cellpadding="0" class="dt mtm">
					<tr class="th">
						<th width="20"></th>
						<th width="275">{lang dzapp_zhibo:names}</th>
						<th width="70">{lang dzapp_zhibo:start_time}</th>
						<th width="70">{lang dzapp_zhibo:over_time}</th>
						<th width="130">{lang dzapp_zhibo:streaming_server}</th>
						<th style="text-align:center">{lang dzapp_zhibo:operation}</th>
					</tr>
					<style type="text/css">
						a.qrcode {position: relative;display: block;}
						a.qrcode:hover {color:#FF3366}
						a.qrcode span {display: none;position: absolute;right: -180px;top: -80px;box-shadow: 0 0 10px #e2e2e2;}
						a.qrcode:hover span {display: block;}
						td em {color: #A70A2E;}
					</style>
					<!--{loop $list $value}-->
					<tr>
						<td><input type="checkbox" name="delete[]" class="pc" value="$value[activity_id]" /></td>
						<td><a href="plugin.php?id=dzapp_zhibo&mod=view&identify=$value[activity_id]" target="_blank" class="qrcode">$value[name]<span><img src="http://qr.liantu.com/api.php?w=180&m=10&el=h&fg=495662&text={$value[qrcode]}" /></span></a></td>
						<td style="color:#999">$value[start_time]</td>
						<td style="color:#999">$value[end_time]</td>
						<td style="color:#999">rtmp://w.gslb.lecloud.com/live</td>
						<td style="text-align:right">
							<!--{if $value[end]}-->
								<em>{lang dzapp_zhibo:zhibo_over}</em><a href="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity&op=comment&activity_id=$value[activity_id]">{lang dzapp_zhibo:comments}</a>
							<!--{else}-->
								<a href="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity&op=end&activity_id=$value[activity_id]">{lang dzapp_zhibo:end}</a>|
								<a href="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity&op=post&activity_id=$value[activity_id]">{lang dzapp_zhibo:edit}</a>|
								<a href="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity&op=live&activity_id=$value[activity_id]" target="_blank">{lang dzapp_zhibo:push_address}</a>|
								<a href="http://live.lecloud.com/live/sdk/getView?activityId=$value[activityid]" target="_blank">{lang dzapp_zhibo:WEB_broadcast_address}</a>|
								<!--{if $value[graphic_status]}-->
									<a href="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity&op=graphic&activity_id=$value[activity_id]">{lang dzapp_zhibo:graphic_live}</a>|
								<!--{/if}-->
								<a href="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity&op=comment&activity_id=$value[activity_id]">{lang dzapp_zhibo:comments}</a>|
								<a href="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity&op=manager&activity_id=$value[activity_id]">{lang dzapp_zhibo:admin}</a>
							<!--{/if}-->
						</td>
					</tr>
					<!--{/loop}-->
					<tr class="bw0_all">
						<td><input type="checkbox" name="chkall" id="chkall" class="pc" onclick="checkall(this.form)" /><label for="chkall">{lang dzapp_zhibo:del}</label></td>
						<td colspan="20"><button type="submit" name="submit" id="submit" class="pn" value="true"><strong>{lang submit}</strong></button></td>
					</tr>
				</table>
			</form>
			<!--{if $multipage}--><div class="page cl">$multipage</div><!--{/if}-->
			<!--{elseif $op == 'live'}-->
			<ul class="tb mbm cl">
				<li><a href="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity">{lang dzapp_zhibo:activity}</a></li>
			</ul>
			<table cellspacing="0" cellpadding="0" class="dt mtm">
				<tr class="th">
					<th class="c"></th>
					<th width="30">{lang dzapp_zhibo:machine_number}</th>
					<th width="100">{lang dzapp_zhibo:push_address}</th>
				</tr>
				<tr>
					<td></td>
					<td>$list[0][machine]</td>
					<td>$list[0][push_url]</td>
				</tr>
			</table>
			<!--{elseif $op == 'graphic'}-->
			<ul class="tb mbm cl">
				<li><a href="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity">{lang dzapp_zhibo:activity}</a></li>
				<li class="a"><a href="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity&op=graphic&activity_id=$_GET[activity_id]">{lang dzapp_zhibo:graphic_live}</a></li>
				<li class="o y"><a href="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity&op=post_graphic&activity_id=$_GET[activity_id]">{lang dzapp_zhibo:add_graphic_live}</a></li>
			</ul>
			<form name="cateform" method="post" action="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity&op=graphic&activity_id=$_GET[activity_id]">
				<input type="hidden" name="formhash" value="{FORMHASH}" />
				<input type="hidden" name="listsubmit" value="true" />
				<table cellspacing="0" cellpadding="0" class="dt mtm">
					<tr class="th">
						<th class="c" width="30"></th>
						<th>{lang dzapp_zhibo:date}</th>
						<th width="100">{lang dzapp_zhibo:operation}</th>
					</tr>
					<!--{loop $list $value}-->
					<tr>
						<td><input type="checkbox" name="delete[]" class="pc" value="$value[graphic_id]" /></td>
						<td>$value[dateline]</td>
						<td><a href="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity&op=post_graphic&graphic_id=$value[graphic_id]">{lang dzapp_zhibo:edit}</a></td>
					</tr>
					<!--{/loop}-->
					<tr class="bw0_all">
						<td><input type="checkbox" name="chkall" id="chkall" class="pc" onclick="checkall(this.form)" /><label for="chkall">{lang dzapp_zhibo:del}</label></td>
						<td colspan="20"><button type="submit" name="submit" id="submit" class="pn" value="true"><strong>{lang submit}</strong></button></td>
					</tr>
				</table>
			</form>
			<!--{if $multipage}--><div class="page cl">$multipage</div><!--{/if}-->
			<!--{elseif $op == 'comment'}-->
			<ul class="tb mbm cl">
				<li><a href="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity">{lang dzapp_zhibo:activity}</a></li>
				<li class="a"><a href="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity&op=comment&activity_id=$_GET[activity_id]">{lang dzapp_zhibo:comments}</a></li>
			</ul>
			<form name="cateform" method="post" action="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity&op=comment&activity_id=$_GET[activity_id]">
				<input type="hidden" name="formhash" value="{FORMHASH}" />
				<input type="hidden" name="listsubmit" value="true" />
				<table cellspacing="0" cellpadding="0" class="dt mtm">
					<tr class="th">
						<th class="c" width="30"></th>
						<th>{lang dzapp_zhibo:comments}</th>
						<th>{lang dzapp_zhibo:date}</th>
					</tr>
					<!--{loop $list $value}-->
					<tr>
						<td><input type="checkbox" name="delete[]" class="pc" value="$value[comment_id]" /></td>
						<td>$value[message]</td>
						<td>$value[dateline]</td>
					</tr>
					<!--{/loop}-->
					<tr class="bw0_all">
						<td><input type="checkbox" name="chkall" id="chkall" class="pc" onclick="checkall(this.form)" /><label for="chkall">{lang dzapp_zhibo:del}</label></td>
						<td colspan="20"><button type="submit" name="submit" id="submit" class="pn" value="true"><strong>{lang submit}</strong></button></td>
					</tr>
				</table>
			</form>
			<!--{if $multipage}--><div class="page cl">$multipage</div><!--{/if}-->
			<!--{elseif $op == 'post_graphic'}-->
			<ul class="tb mbm cl">
				<!--{if $_GET[graphic_id]}-->
				<li class="a"><a href="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity&op=post&activity_id=$_GET[activity_id]">{lang dzapp_zhibo:edit_graphic_live}</a></li>
				<!--{else}-->
				<li class="a"><a href="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity&op=post">{lang dzapp_zhibo:add_graphic_live}</a></li>
				<!--{/if}-->
			</ul>
			<script type="text/javascript" src="{$_G[setting][jspath]}calendar.js?{VERHASH}"></script>
			<form name="activityform" method="post" action="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity&op=post_graphic" onsubmit="return validate(this)" enctype="multipart/form-data">
				<input type="hidden" name="formhash" value="{FORMHASH}" />
				<input type="hidden" name="activity_id" value="$_GET[activity_id]" />
				<input type="hidden" name="graphic_id" value="$_GET[graphic_id]" />
				<input type="hidden" name="graphicsubmit" value="true" />
				<table cellspacing="0" cellpadding="0" class="tfm">
					<tr>
						<th><label for="pic">{lang dzapp_zhibo:picture}</label></th>
						<td>
							<input type="file" name="pic" id="pic" class="pf" />
							<!--{if $graphic[pic]}--><p class="mtn"><img height="75" src="$graphic[pic]?{TIMESTAMP}" /></p><!--{/if}-->
						</td>
					</tr>
					
					<tr>
						<th><label for="describe">{lang dzapp_zhibo:describe}</label></th>
						<td><textarea name="describe" id="describe" class="pt" rows="5">$graphic[describe]</textarea></td>
					</tr>
					<tr>
						<th></th>
						<td><button type="submit" class="pn pnp"><strong>{lang submit}</strong></button></td>
					</tr>
				</table>
			</form>
			<script type="text/javascript">
			function validate(theform) {
				if(theform.pic.value == '') {
					alert('{lang dzapp_zhibo:pic_validate}');theform.pic.focus();return false;
				}
			}
			</script>
			<!--{elseif $op == 'manager'}-->
			<ul class="tb mbm cl">
				<li class="a"><a href="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity&op=manager&activity_id=$_GET[activity_id]">{lang dzapp_zhibo:activity_manager}</a></li>	
			</ul>
			<script type="text/javascript" src="{$_G[setting][jspath]}calendar.js?{VERHASH}"></script>
			<form name="activityform" method="post" action="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity&op=manager" onsubmit="return validate(this)" enctype="multipart/form-data">
				<input type="hidden" name="formhash" value="{FORMHASH}" />
				<input type="hidden" name="activity_id" value="$_GET[activity_id]" />
				<input type="hidden" name="managersubmit" value="true" />
				<table cellspacing="0" cellpadding="0" class="tfm">
					<tr>
						<th><label for="manager">{lang dzapp_zhibo:activity_name}</label></th>
						<td>{$activity[name]}</td>
					</tr>
					<tr>
						<th><label for="manager">{lang dzapp_zhibo:admin}</label></th>
						<td><input type="text" name="manager" id="manager" class="px" value="$activity[manager]" /></td>
					</tr>
					<tr>
						<th></th>
						<td><button type="submit" class="pn pnp"><strong>{lang submit}</strong></button></td>
					</tr>
				</table>
			</form>
			<script type="text/javascript">
			function validate(theform) {
				if(theform.manager.value == '') {
					alert('{lang dzapp_zhibo:manager_validate}');theform.manager.focus();return false;
				}
			}
			</script>
			<!--{else}-->
			<ul class="tb mbm cl">
				<!--{if $activity[activity_id]}-->
				<li class="a"><a href="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity&op=post&activity_id=$_GET[activity_id]">{lang dzapp_zhibo:edit_activity}</a></li>
				<!--{else}-->
				<li class="a"><a href="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity&op=post">{lang dzapp_zhibo:add_activity}</a></li>
				<!--{/if}-->
			</ul>
			<script type="text/javascript" src="{$_G[setting][jspath]}calendar.js?{VERHASH}"></script>
			<script type="text/javascript" charset="gbk" src="source/plugin/dzapp_editor/ueditor.config.js"></script>
			<script type="text/javascript" charset="gbk" src="source/plugin/dzapp_editor/ueditor.all.min.js"> </script>
			<script type="text/javascript" charset="gbk" src="source/plugin/dzapp_editor/lang/zh-cn/zh-cn.js"></script>
			<form name="activityform" method="post" action="plugin.php?id=dzapp_zhibo&mod=zhibocp&ac=activity&op=post" onsubmit="return validate(this)" enctype="multipart/form-data">
				<input type="hidden" name="formhash" value="{FORMHASH}" />
				<input type="hidden" name="activity_id" value="$activity[activity_id]" />
				<input type="hidden" name="activitysubmit" value="true" />
				<table cellspacing="0" cellpadding="0" class="tfm">
					<tr>
						<th><strong class="rq y">*</strong><label for="name">{lang dzapp_zhibo:names}</label></th>
						<td><input type="text" name="name" id="name" class="px" value="$activity[name]" /></td>
					</tr>
					<tr>
						<th><label for="start_time">{lang dzapp_zhibo:start_time}</label></th>
						<td><input type="calendar" name="start_time" id="start_time" class="px" value="$activity[start_time]" onclick="showcalendar(event, this, 1)" /></td>
					</tr>
					<tr>
						<th><label for="end_time">{lang dzapp_zhibo:over_time}</label></th>
						<td><input type="calendar" name="end_time" id="end_time" class="px" value="$activity[end_time]" onclick="showcalendar(event, this, 1)" /></td>
					</tr>
					<tr>
						<th><label for="cover_img_url">{lang dzapp_zhibo:cover_address}</label></th>
						<td>
							<input type="file" name="cover_img_url" id="cover_img_url" class="pf" />
							<!--{if $activity[cover_img_url]}--><p class="mtn"><img height="75" src="$activity[cover_img_url]?{TIMESTAMP}" /></p><!--{/if}-->
						</td>
					</tr>
					<tr>
						<th><label for="code_rate">{lang dzapp_zhibo:rate}</label></th>
						<td>
							<select name="code_rate" id="code_rate" class="ps">
								<option value="0"></option>
								<option value="10" {if $activity[code_rate] == 10} selected="selected"{/if}>{lang dzapp_zhibo:fluent}</option>
								<option value="13" {if $activity[code_rate] == 13} selected="selected"{/if}>{lang dzapp_zhibo:sdtv}</option>
								<option value="16" {if $activity[code_rate] == 16} selected="selected"{/if}>{lang dzapp_zhibo:hdtv}</option>
								<option value="19" {if $activity[code_rate] == 19} selected="selected"{/if}>{lang dzapp_zhibo:super_clear}</option>
								<option value="22" {if $activity[code_rate] == 22} selected="selected"{/if}>720P</option>
								<option value="25" {if $activity[code_rate] == 25} selected="selected"{/if}>1080P</option>
								<option value="99" {if $activity[code_rate] == 99} selected="selected"{/if}>{lang dzapp_zhibo:painting}</option>
							</select>
						</td>
					</tr>				
					<tr>
						<th><label for="need_time_shift">{lang dzapp_zhibo:zhibo_html_1}</label></th>
						<td>
							<label><input type="radio" name="need_time_shift" class="pr" value="1" {if $activity[need_time_shift] == 1} checked="checked"{/if} />{lang dzapp_zhibo:shi}</label>
							<label><input type="radio" name="need_time_shift" class="pr" value="0" {if $activity[need_time_shift] == 0} checked="checked"{/if} />{lang dzapp_zhibo:fou}</label>
						</td>
					</tr>
					<tr>
						<th><label for="need_full_view">{lang dzapp_zhibo:zhibo_html_2}</label></th>
						<td>
							<label><input type="radio" name="need_full_view" class="pr" value="1" {if $activity[need_full_view] == 1} checked="checked"{/if} />{lang dzapp_zhibo:shi}</label>
							<label><input type="radio" name="need_full_view" class="pr" value="0" {if $activity[need_full_view] == 0} checked="checked"{/if} />{lang dzapp_zhibo:fou}</label>
						</td>
					</tr>
					<tr>
						<th><label for="activity_category">{lang dzapp_zhibo:activity_type}</label></th>
						<td>
							<select name="activity_category" id="activity_category" class="ps">
								<option value="0"></option>
								<option value="001" {if $activity[activity_category] == '001'} selected="selected"{/if}>{lang dzapp_zhibo:briefing}</option>
								<option value="002" {if $activity[activity_category] == '002'} selected="selected"{/if}>{lang dzapp_zhibo:wedding}</option>
								<option value="003" {if $activity[activity_category] == '003'} selected="selected"{/if}>{lang dzapp_zhibo:annual_meeting}</option>
								<option value="004" {if $activity[activity_category] == '004'} selected="selected"{/if}>{lang dzapp_zhibo:sports}</option>
								<option value="005" {if $activity[activity_category] == '005'} selected="selected"{/if}>{lang dzapp_zhibo:game}</option>
								<option value="006" {if $activity[activity_category] == '006'} selected="selected"{/if}>{lang dzapp_zhibo:travel_outdoor}</option>
								<option value="007" {if $activity[activity_category] == '007'} selected="selected"{/if}>{lang dzapp_zhibo:finance}</option>
								<option value="008" {if $activity[activity_category] == '008'} selected="selected"{/if}>{lang dzapp_zhibo:concert}</option>
								<option value="002" {if $activity[activity_category] == '009'} selected="selected"{/if}>{lang dzapp_zhibo:cooking}</option>
								<option value="010" {if $activity[activity_category] == '010'} selected="selected"{/if}>{lang dzapp_zhibo:pets_animals}</option>
								<option value="011" {if $activity[activity_category] == '011'} selected="selected"{/if}>{lang dzapp_zhibo:interview}</option>
								<option value="012" {if $activity[activity_category] == '012'} selected="selected"{/if}>{lang dzapp_zhibo:education}</option>
								<option value="013" {if $activity[activity_category] == '013'} selected="selected"{/if}>{lang dzapp_zhibo:athletic}</option>
								<option value="014" {if $activity[activity_category] == '014'} selected="selected"{/if}>{lang dzapp_zhibo:theatre}</option>
								<option value="015" {if $activity[activity_category] == '015'} selected="selected"{/if}>{lang dzapp_zhibo:evening_party}</option>
								<option value="016" {if $activity[activity_category] == '016'} selected="selected"{/if}>{lang dzapp_zhibo:tv_program}</option>
								<option value="017" {if $activity[activity_category] == '017'} selected="selected"{/if}>{lang dzapp_zhibo:show}</option>
								<option value="999" {if $activity[activity_category] == '999'} selected="selected"{/if}>{lang dzapp_zhibo:other}</option>
							</select>
						</td>
					</tr>
					<tr>
						<th><label for="play_mode">{lang dzapp_zhibo:play_type}</label></th>
						<td>
							<select name="play_mode" id="play_mode" class="ps">
								<option value="0" {if !$activity[play_mode]} selected="selected"{/if}>{lang dzapp_zhibo:realtime_zhibo}</option>
								<option value="1" {if $activity[play_mode] == 1} selected="selected"{/if}>{lang dzapp_zhibo:smooth_zhibo}</option>
							</select>
						</td>
					</tr>
					<tr>
						<th><label for="scroll_advert">{lang dzapp_zhibo:rolling_ad}</label></th>
						<td><input type="text" name="scroll_advert" id="scroll_advert" class="px" value="$activity[scroll_advert]" /></td>
					</tr>
					<tr>
						<th><label for="scroll_advert_url">{lang dzapp_zhibo:rolling_ad_url}</label></th>
						<td><input type="text" name="scroll_advert_url" id="scroll_advert_url" class="px" value="$activity[scroll_advert_url]" /></td>
					</tr>
					<tr>
						<th><label for="advert">{lang dzapp_zhibo:banner_ad}</label></th>
						<td>
							<input type="file" name="advert" id="advert" class="pf" />
							<!--{if $activity[advert]}--><p class="mtn"><img height="75" src="$activity[advert]?{TIMESTAMP}" /></p><!--{/if}-->
						</td>
					</tr>
					<tr>
						<th><label for="advert_url">{lang dzapp_zhibo:banner_ad_url}</label></th>
						<td><input type="text" name="advert_url" id="advert_url" class="px" value="$activity[advert_url]" /></td>
					</tr>
					<tr>
						<th><label for="graphic_status">{lang dzapp_zhibo:close_graphic_live}</label></th>
						<td>
							<label><input type="radio" name="graphic_status" class="pr" value="1" {if $activity[graphic_status] == 1} checked="checked"{/if} />{lang dzapp_zhibo:shi}</label>
							<label><input type="radio" name="graphic_status" class="pr" value="0" {if $activity[graphic_status] == 0} checked="checked"{/if} />{lang dzapp_zhibo:fou}</label>
						</td>
					</tr>
					<tr>
						<th><label for="tab_title">{lang dzapp_zhibo:custom_title}</label></th>
						<td>
							<input type="text" name="tab_title" id="tab_title" class="px" value="$activity[tab_title]" />
						</td>
					</tr>
					<tr>
						<th><label for="tab_content">{lang dzapp_zhibo:custom_article}</label></th>
						<td>
							<textarea name="tab_content" id="tab_content" class="pt" rows="5">$activity[tab_content]</textarea>
							<input type="hidden" name="picid" id="picid" value="0" />
							<script id="editor" type="text/plain" style="width:99%;height:500px;"></script>
						</td>
					</tr>
					<tr>
						<th></th>
						<td><button type="submit" class="pn pnp"><strong>{lang submit}</strong></button></td>
					</tr>
				</table>
			</form>
			<script type="text/javascript">
			function validate(theform) {
				if(theform.name.value == '') {
					alert('{lang dzapp_zhibo:name_validate}');theform.name.focus();return false;
				}
				if(theform.tab_title.value.length > 4) {
					alert('{lang dzapp_zhibo:tab_title_validate}');theform.tab_title.focus();return false;
				}
				theform.tab_content.value = ue.getContent();
			}
			var ue = UE.getEditor('editor');
			ue.ready(function() {
				ue.setContent($('tab_content').value);
			});
			</script>
			<!--{/if}-->
		</div>
	</div>
	<div class="appl">
		<!--{subtemplate dzapp_zhibo:zhibocp_nav}-->
	</div>
</div>
<!--{template common/footer}-->